@model UpdaterManagement.Models.Department

<nav aria-label="breadcrumb" class="breadcrumb-ace">
    <ol class="breadcrumb">
        <li class="breadcrumb-item"><a href="/">首页</a></li>
        <li class="breadcrumb-item"><a href="/Department">部门管理</a></li>
        <li class="breadcrumb-item active">新增部门</li>
    </ol>
</nav>

<div class="page-header">
    <div class="d-flex justify-content-between align-items-center">
        <div>
            <h1 class="page-title">
                <i class="bi bi-plus-circle text-primary me-2"></i>新增部门
            </h1>
            <p class="page-subtitle">添加新的部门到系统中</p>
        </div>
        <a href="/Department" class="btn btn-outline-secondary">
            <i class="bi bi-arrow-left me-2"></i>返回列表
        </a>
    </div>
</div>

<div class="row">
    <div class="col-lg-8">
        <div class="card-ace">
            <div class="card-header">
                <i class="bi bi-form-check me-2"></i>部门信息
            </div>
            <div class="card-body">
                <partial name="_ErrorAlert" />
                
                <form method="post">
                    <div class="mb-3">
                        <label class="form-label-ace">
                            <i class="bi bi-building text-primary me-1"></i>部门名称
                        </label>
                        <input type="text" class="form-control form-control-ace" asp-for="Name" 
                               placeholder="如: 技术部" required />
                    </div>
                    
                    <div class="mb-3">
                        <label class="form-label-ace">
                            <i class="bi bi-person text-primary me-1"></i>部门负责人
                        </label>
                        <input type="text" class="form-control form-control-ace" asp-for="Manager" 
                               placeholder="如: 张三" required />
                    </div>
                    
                    <div class="mb-3">
                        <label class="form-label-ace">
                            <i class="bi bi-chat-text text-primary me-1"></i>部门描述
                        </label>
                        <textarea class="form-control form-control-ace" asp-for="Description" rows="3" 
                                  placeholder="部门职能描述"></textarea>
                    </div>
                    
                    <div class="d-flex gap-2 pt-3 border-top">
                        <button type="submit" class="btn btn-ace-primary">
                            <i class="bi bi-check-circle me-2"></i>保存部门
                        </button>
                        <a href="/Department" class="btn btn-outline-secondary">
                            <i class="bi bi-x-circle me-2"></i>取消
                        </a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>